home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / rdf / nsIRDFDelegateFactory.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  110 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIRDFDelegateFactory.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIRDFDelegateFactory_h__
  6. #define __gen_nsIRDFDelegateFactory_h__
  7.  
  8.  
  9. #ifndef __gen_nsrootidl_h__
  10. #include "nsrootidl.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsISupports_h__
  14. #include "nsISupports.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21. class nsIRDFResource; /* forward declaration */
  22.  
  23.  
  24. /* starting interface:    nsIRDFDelegateFactory */
  25. #define NS_IRDFDELEGATEFACTORY_IID_STR "a1b89470-a124-11d3-be59-0020a6361667"
  26.  
  27. #define NS_IRDFDELEGATEFACTORY_IID \
  28.   {0xa1b89470, 0xa124, 0x11d3, \
  29.     { 0xbe, 0x59, 0x00, 0x20, 0xa6, 0x36, 0x16, 0x67 }}
  30.  
  31. /**
  32.  * This interface should be implemented by an XPCOM factory that
  33.  * is registered to handle "@mozilla.org/rdf/delegate-factory/[key]/[scheme];1"
  34.  * ContractIDs.
  35.  *
  36.  * The factory will be invoked to create delegate objects from
  37.  * nsIRDFResource::GetDelegate().
  38.  */
  39. class NS_NO_VTABLE nsIRDFDelegateFactory : public nsISupports {
  40.  public: 
  41.  
  42.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IRDFDELEGATEFACTORY_IID)
  43.  
  44.   /**
  45.      * Create a delegate for the specified RDF resource.
  46.      *
  47.      * The created delegate should forward AddRef() and Release()
  48.      * calls to the aOuter object.
  49.      */
  50.   /* void CreateDelegate (in nsIRDFResource aOuter, in string aKey, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult aResult); */
  51.   NS_IMETHOD CreateDelegate(nsIRDFResource *aOuter, const char *aKey, const nsIID & aIID, void * *aResult) = 0;
  52.  
  53. };
  54.  
  55. /* Use this macro when declaring classes that implement this interface. */
  56. #define NS_DECL_NSIRDFDELEGATEFACTORY \
  57.   NS_IMETHOD CreateDelegate(nsIRDFResource *aOuter, const char *aKey, const nsIID & aIID, void * *aResult); 
  58.  
  59. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  60. #define NS_FORWARD_NSIRDFDELEGATEFACTORY(_to) \
  61.   NS_IMETHOD CreateDelegate(nsIRDFResource *aOuter, const char *aKey, const nsIID & aIID, void * *aResult) { return _to CreateDelegate(aOuter, aKey, aIID, aResult); } 
  62.  
  63. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  64. #define NS_FORWARD_SAFE_NSIRDFDELEGATEFACTORY(_to) \
  65.   NS_IMETHOD CreateDelegate(nsIRDFResource *aOuter, const char *aKey, const nsIID & aIID, void * *aResult) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateDelegate(aOuter, aKey, aIID, aResult); } 
  66.  
  67. #if 0
  68. /* Use the code below as a template for the implementation class for this interface. */
  69.  
  70. /* Header file */
  71. class nsRDFDelegateFactory : public nsIRDFDelegateFactory
  72. {
  73. public:
  74.   NS_DECL_ISUPPORTS
  75.   NS_DECL_NSIRDFDELEGATEFACTORY
  76.  
  77.   nsRDFDelegateFactory();
  78.  
  79. private:
  80.   ~nsRDFDelegateFactory();
  81.  
  82. protected:
  83.   /* additional members */
  84. };
  85.  
  86. /* Implementation file */
  87. NS_IMPL_ISUPPORTS1(nsRDFDelegateFactory, nsIRDFDelegateFactory)
  88.  
  89. nsRDFDelegateFactory::nsRDFDelegateFactory()
  90. {
  91.   /* member initializers and constructor code */
  92. }
  93.  
  94. nsRDFDelegateFactory::~nsRDFDelegateFactory()
  95. {
  96.   /* destructor code */
  97. }
  98.  
  99. /* void CreateDelegate (in nsIRDFResource aOuter, in string aKey, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult aResult); */
  100. NS_IMETHODIMP nsRDFDelegateFactory::CreateDelegate(nsIRDFResource *aOuter, const char *aKey, const nsIID & aIID, void * *aResult)
  101. {
  102.     return NS_ERROR_NOT_IMPLEMENTED;
  103. }
  104.  
  105. /* End of implementation class template. */
  106. #endif
  107.  
  108.  
  109. #endif /* __gen_nsIRDFDelegateFactory_h__ */
  110.